<h2>Artykuły w kategorii: <?php echo($category['name']); ?></h2>
<?php

foreach($articles as $article) {
   $articleLink = "/articles/show/".$article['Article']['id']."/".slug($article['Article']['title']);
   echo("<h2>".$article['Article']['title']."</h2><span class=\"moderation-options\">".$this->Html->link("Usuń z tej kategorii &raquo;", array('action' => 'admin_delete_from_category', $category['id'], $article['Article']['id']))."</span>");
   echo("<span class=\"article-info\">Autor: ".$article['User']['username'].", <a href=\"".$articleLink."#comments\">Skomentuj (".count($article['ArticleComment']).") &raquo;</a></span>");
   echo("<p>".shorten("<!--more-->", $article['Article']['content'], "... <a href=\"".$articleLink."\">Czytaj dalej...</a>", "")."</p>");
}
?>